import time

class Timer:
    """class timer for manipulating times"""
    def __init__(self):
        """init timer to use"""
        self.timer=time.time()
    
    def Tick(self, interval):
        """return True if interval time left. (interval in seconds)"""
        if time.time()-self.timer>=interval:
            self.Reset()
            return True
        else:
            return False
    
    def Reset(self):
        """reset timer"""
        self.timer=time.time()
